import request from '@/router/axios';

export const handleDrawingAttachApproval = (drawingAttachApproval) => {
  return request({
    url: '/api/drawing/attachapproval/handleDrawingAttachApproval',
    method: 'post',
    data: drawingAttachApproval
  })
}

export const findHistoryApprovalList = (drawingUploadId, taskDefinitionKey) => {
  return request({
    url: '/api/drawing/attachapproval/findHistoryApprovalList',
    method: 'get',
    params: {
      drawingUploadId,
      taskDefinitionKey
    }
  })
}

export const handleDrawingAttachApprovalByBatch = (drawingAttachApprovalList) => {
  return request({
    url: '/api/drawing/attachapproval/handleDrawingAttachApprovalByBatch',
    method: 'post',
    data: drawingAttachApprovalList
  })
}


